# conftest.py
import pytest
import yaml
from pathlib import Path

@pytest.fixture(scope="session")
def project_root():
    return Path(__file__).parent

@pytest.fixture(scope="session")
def yaml_data(project_root):
    path = project_root / "config" / "data.yaml"
    with open(path, "r", encoding="utf-8") as f:
        return yaml.safe_load(f)